#!/usr/bin/env python
# -*- coding:utf-8 -*-
f = open('user.txt','r')
users = f.read()
f.close()

userlist = users.split('\n')
print userlist
i = 0

while i < 3:
	print "请输入用户名："
	username = raw_input()
	print "请输入密码："
	userpasswd = raw_input()
	user = '%s %s' %(username,userpasswd)
	print user
	if user in userlist:
		print 'OK'
		break
	else :
		print 'wrong username or password' 
		i += 1
